package com.atguigu.serviceorder.client;

import com.atguigu.commonutils.vo.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author JY
 * @create 2021-02-04 11:39
 */
@Component
@FeignClient(name = "service-ucenter")
public interface UcenterClient {
    //根据id获取用户信息
    @GetMapping("/api/ucenter/member/getInfoById/{id}")
    public UcenterMember getInfoById(@PathVariable("id") String id);
}
